import request from '@/utils/request'

export function getInfo(token) {

}

export function logout() {

}
/**
 * @description 登录接口
 * @returns
 */
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}
/**
 * @description 获取用户信息接口
 * @returns
 */
export function getUserProfile() {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}

export function getUserDetail(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'GET'
  })
}
